const ipcRenderer = require('electron').ipcRenderer;
console.log(ipcRenderer.sendSync('test3', '我是渲染进程')); // prints "我是主进程"

ipcRenderer.on('test2', function(event, arg) {
  console.log(arg); // 
});
ipcRenderer.send('test1', '我是渲染进程的test2');
